﻿using YioksPlanEditor.ObjectCopy;

namespace YioksPlanEditor.Yioks
{
    public class SoftInfo:Model
    {
        public string BaseDirectory { get; set; }
        public string RootDirectory { get; set; }

        /// <summary>
        /// 系统名称
        /// </summary>
        public int SystemIdentifier { get; set; }

        /// <summary>
        /// 软件名称
        /// </summary>
        public string SoftName { get; set; }

        /// <summary>
        /// 版本
        /// </summary>
        public string SoftVersion { get; set; }

        /// <summary>
        /// 软件目录
        /// </summary>
        public string SoftDirectory { get; set; }

        /// <summary>
        /// 软件资源目录
        /// </summary>
        public string SoftResourceDirectory { get; set; }

        /// <summary>
        /// 软件exe启动路径
        /// </summary>
        public string SoftExecutablePath { get; set; }

        #region 升级文件信息
        /// <summary>
        /// 升级软件名称
        /// </summary>
        public string UpdateSoftName { get; set; }
        /// <summary>
        /// 升级软件目录
        /// </summary>
        public string UpdateSoftDirectory { get; set; }

        /// <summary>
        /// 升级软件资源目录
        /// </summary>
        public string UpdateSoftResourceDirectory { get; set; }

        /// <summary>
        /// 升级软件exe启动路径
        /// </summary>
        public string UpdateSoftExecutablePath { get; set; }


        /// <summary>
        /// 子程序软件目录
        /// </summary>
        public string MainSoftDirectory { get; set; }

        /// <summary>
        /// 子程序软件名称
        /// </summary>
        public string MainSoftName { get; set; }

        #endregion



        #region 服务器
        /// <summary>
        /// 服务器
        /// </summary>
        public string SoftYioksServer { get; set; }
        #endregion

        /// <summary>
        /// 调试模式是否开启
        /// </summary>
        public bool IsDebug { get; set; }

        /// <summary>
        /// 浏览器是否为IE
        /// </summary>
        public bool IsIExplorer { get; set; }

        public SoftInfo()
        {
            SetDefaultProp("SoftYioksServer", "http://updatepro.devzz.yioks.org:32280/");
        }
    }
}
